<template>

   <h1>Person Info</h1>
   <Person001 v-if="show"/>
   <br></br>
    <button @click="unMountComp">加载/卸载组件</button>
</template>

<script lang="ts" setup>
    import Person001 from './components/Person.vue';
    import { ref } from 'vue';

    let show = ref(true);

    function unMountComp() {
        show.value = !show.value
    }


</script>

<style>
</style>
